

set more off

set logtype text 


////////////////////////////////////////////////////////////////////////////////////
/// TOTAL N = 240; EXCLUSIONS B/C OF NON-US IP OR FAILED CATCH = 9; MISSING DATA = 1
/// USABLE N = 230
/////////////////////////////////////////////////////////////////////////////////////


///////////////////////
/////FREE-TO-VARY//////
///////////////////////

sem (IH -> IH01Stop) (IH -> IH02Beds) (IH -> IH03Diamonds) (IH -> IH04Dollar) (IH -> IH05Chipmunk) (IH -> IH06OJ) ///
(IH -> IH07Pink) (IH -> IH08White) (IH -> IH09Black) (IH -> IH10Mint) (IH -> IH11Seven) ///
(IH -> IH12Weekend) (IH -> IH13Limbs) (IH -> IH14Eyes) (IH -> IH15Sounds) ///
(Ess -> HREAvg) (Ess -> RGAvg) (Ess -> NoAvg) if EXCLUDE==0, latent(IH Ess ) ///
cov(e.IH01Stop*e.IH02Beds e.IH01Stop*e.IH03Diamonds e.IH02Beds*e.IH03Diamonds e.IH04Dollar*e.IH05Chipmunk ///
e.IH04Dollar*e.IH06OJ e.IH05Chipmunk*e.IH06OJ e.IH07Pink*e.IH08White e.IH07Pink*e.IH09Black e.IH08White*e.IH09Black ///
e.IH10Mint*e.IH11Seven e.IH10Mint*e.IH12Weekend e.IH11Seven*e.IH12Weekend e.IH13Limbs*e.IH14Eyes e.IH13Limbs*e.IH15Sounds ///
e.IH14Eyes*e.IH15Sounds IH*Ess) nocapslatent

estat gof, stats(all)
estimates store free_to_vary


///////////////////////
/////CONSTRAINED//////
///////////////////////


sem (IH -> IH01Stop) (IH -> IH02Beds) (IH -> IH03Diamonds) (IH -> IH04Dollar) (IH -> IH05Chipmunk) (IH -> IH06OJ) ///
(IH -> IH07Pink) (IH -> IH08White) (IH -> IH09Black) (IH -> IH10Mint) (IH -> IH11Seven) ///
(IH -> IH12Weekend) (IH -> IH13Limbs) (IH -> IH14Eyes) (IH -> IH15Sounds) ///
(Ess -> HREAvg) (Ess -> RGAvg) (Ess -> NoAvg) if EXCLUDE==0, latent(IH Ess ) ///
cov(e.IH01Stop*e.IH02Beds e.IH01Stop*e.IH03Diamonds e.IH02Beds*e.IH03Diamonds e.IH04Dollar*e.IH05Chipmunk ///
e.IH04Dollar*e.IH06OJ e.IH05Chipmunk*e.IH06OJ e.IH07Pink*e.IH08White e.IH07Pink*e.IH09Black e.IH08White*e.IH09Black ///
e.IH10Mint*e.IH11Seven e.IH10Mint*e.IH12Weekend e.IH11Seven*e.IH12Weekend e.IH13Limbs*e.IH14Eyes e.IH13Limbs*e.IH15Sounds ///
e.IH14Eyes*e.IH15Sounds IH*Ess@1) nocapslatent

estat gof, stats(all)
estimates store constrained

lrtest constrained free_to_vary

log close
